import {RouteRecordRaw} from 'vue-router'

export type RouteMeta = {
    // 标题名称
    title: string;
}

/**
 * 自定义的路由类型, 继承 RouteRecordRaw
 */
export type RouteItem = RouteRecordRaw & {
    // 路由名
    name: string;
    // 标头
    meta: RouteMeta;
    // 子级路由
    children?: Array<RouteItem>;
}
